using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CodePlex.SpaceBlock;
using CodePlex.Resourceful;
using System.Diagnostics;

namespace CodePlex.SpaceBlock.UI.Controls.Tools
{
    public partial class SSDSSettingsControl : BaseControl
    {

        public SSDSSettingsControl()
        {
            InitializeComponent();

            _createLink.Text = Properties.Messages.Options_SSDS_Signup;

            _warningLabel.Text = Properties.Messages.Options_SSDS_Warning;

            
           
        }

        public void Initialize(FileSystemInfo info)
        {
            UIUtils.Bind(_usernameBox, info.PublicSettings, UIConstants.SSDSSettings.Username);
            UIUtils.Bind(_passwordBox, info.PrivateSettings, UIConstants.SSDSSettings.Password);
            UIUtils.Bind(_useSSLCheck, info.PublicSettings, UIConstants.SSDSSettings.UseSSL);
            UIUtils.Bind(_authorityBox, info.PublicSettings, UIConstants.SSDSSettings.Authority);
        }

      

        private void _createLink_LinkClicked_1(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process.Start(Properties.Messages.Urls_SSDS_Signup);
        }

       
    }
}

